{include file=header.html}
 <script type="text/javascript" language="javascript" src="{lib file=jquery-1.6.3.min.js}"></script>
<style type="text/css">
.btn-2{margin-bottom:5px;}
.table_no_border,.table_no_border td,.table_no_border th{
	padding:0;
	margin:0;
	border-width:0 1px 0 0;
	}
.fabric_info_list td input,.fabric_info_list td select{width:93%;}
.fabric_info_table td,.fabric_info_table th{
	border-left:none;
	border-bottom:none;
	}
.fabric_info_table th
{
   border-top:none;
}
.tab-display .no_right_border
{
	border-right:none;
}
.fabric_info_table .btn-2{
	line-height:20px;
	height:20px;
	margin-bottom:1px;}
#sample_filesize {width:100px;word-wrap: break-word;word-break: normal;word-break:break-all;}
</style>
<body>
<div class="sub-body">
      
  <div class="tab-frame" style="width:1050px;">
  <h3 class="tab-title-1"><span>{$lang.order_sour_info}</span></h3>
		<form method="post" id="sour_form" action="{url app=purchase&act=$smarty.get.act&id=$smarty.get.id}">
    <table width="100%" cellspacing="0" cellpadding="0" class="tab-display">
    	<tr>
          	<th  align="right" width="120">下单日期：</th>
          	<td width="180">{$sours.order_create_date|date}&nbsp;&nbsp;状态：{$lang.order_status.$sours.status}</td>
          	<th colspan="2" width="300">正面</th>
          	<th colspan="2" width="300">反面</th>
        </tr>
		<tr>
           	<th  align="right">品&nbsp;&nbsp;&nbsp;&nbsp;牌：</th>
           	<td>{$sours.brand_name|escape}</td>
           	<td colspan="2" align="center" rowspan="11"><img id="front_image" width="220" height="264" src="{$sours.front_pic}" alt=""></td>
           	<td colspan="2" align="center" rowspan="11"><img id="back_image" width="220" height="264" src="{$sours.back_pic}" alt=""></td>
        </tr>

        <tr>
           	<th  align="right">买&nbsp;&nbsp;&nbsp;&nbsp;手：</th>
           	<td>
               {$sours.buyer_name}
             </td>
           </tr>
           
		   <tr>
            	<th  align="right">跟&nbsp;&nbsp;&nbsp;&nbsp;单：</th>
            	<td>{$sours.merchandiser|escape}</td>
            </tr>
        	<tr>
            	<th  align="right">订&nbsp;单&nbsp;号：</th>
            	<td>{$sours.order_sn|escape}</td>
            </tr>
        	<tr>
            	<th  align="right">款&nbsp;&nbsp;&nbsp;&nbsp;号：</th>
            	<td>{$sours.style_sn|escape}</td>
            </tr>
        	<tr>
            	<th  align="right">参考板号：</th>
            	<td>{$sours.sample_sn|escape}</td>
            </tr>
        	<tr>
            	<th  align="right">到板日期：</th>
            	<td><!-- {if $sours.arrival_date} -->{$sours.arrival_date|date}<!-- {/if} --></td>
            </tr>
        	<tr>
            	<th  align="right">款&nbsp;&nbsp;&nbsp;&nbsp;式：</th>
            	<td>{$sours.style_name|escape}</td>
            </tr>
        	<tr>
            	<th  align="right">工&nbsp;&nbsp;&nbsp;&nbsp;厂：</th>
            	<td>{$sours.factory_name|escape}</td>
            </tr>
        	<tr>
            	<th  align="right">运&nbsp;&nbsp;&nbsp;&nbsp;输：</th>
            	<td><!-- {if $sours.trans_type == 1} -->空运<!-- {else} -->海运<!-- {/if} --></td>
            </tr>
            <tr>
            	<th  align="right">目的地：</th>
            	<td>{$sours.brand_addr|escape}</td>
            </tr>
			<tr>
            	<th  align="right">件&nbsp;&nbsp;&nbsp;&nbsp;数：</th>
            	<td>{$sours.quantity}</td>
            	<td colspan="4" style="text-align:center;">&nbsp;</td>
            </tr>
			<tr>
            	<th  align="right">工厂价格：</th>
            	<td>{$sours.factory_price}元</td>
				<th  align="right" width="120">工厂入仓日期：</th>
				<td><!-- {if $sours.release_date} -->{$sours.release_date|date}<!-- {/if} --></td>
				<th align="right" width="120">实际出货件数：</th>
				<td>{$sours.ship_count}</td>
				</tr>
      <tr>
        <th colspan="1" align="right" style="font-size:12px;">{$lang.fabric_info}：<br></th>
       <td colspan="12" style="margin:0; padding:0;">
       <table width="100%" class="fabric_info_table" cellpadding="0" cellspacing="0">
       <th width="10%" class="no_left_border">成本描述</th>
       <th width="12%">{$lang.fabric_shop_name}</th>
       <th width="8%">品名/货号</th>
       <th width="8%">颜色</th>
       <th width="6%">数量</th>
       <th width="6%" >价格</th>
       <th width="20%">地址</th>
       <th width="12%">电话</th>
       <th width="6%">凭证</th>
       <th width="6%">色卡</th>
      <!--{foreach from=$fabric_info_list item=fabric_info name=fi}-->
       <tr class="fabric_info_list">
       <td>{$fabric_info.description|escape}</td>
       <td>{$fabric_info.fabric_shop_name}</td>    
       <td>{$fabric_info.item}</td>
       <td>{$fabric_info.colors}</td>
 	   <td>{$fabric_info.fabric_num}</td>
 	   <td>{$fabric_info.price}</td>   
       <td>{$fabric_info.address}</td>
       <td>{$fabric_info.phone_mob}</td>
       <td>
      	<a href="{url app=purchase&act=upload_order_invoices&s_id=$sours.sourcing_id&fid=$fabric_info.fabric_info_id}">查看</a>
	</td>
       <td>
      <a  item="picture_show" cid="{$fabric_info.cc_id}"  href="javascript:;">查看</a>
</td>
       </tr>
       <!--{/foreach}-->
       </table>
       </td>
      </tr>
    </table>
	</form>
  </div>
</div>
</body>
<script>
$(function(){
	window.print() ;
})
</script>
</html>